package com.hncu.edu.info.manager.controller;

import com.hncu.edu.info.manager.domain.Teacher;

public class TeacherController extends BaseTeacherController {
    //信息录入与封装
    public Teacher getTeacher(String Id) {
        //完善其他信息
        System.out.println("请输入姓名：");
        String name = in.next();
        System.out.println("请输入年龄：");
        String age = in.next();
        System.out.println("请输入生日：");
        String birthday = in.next();
        //封装为对象
        Teacher teacher = new Teacher();
        teacher.setid(Id);
        teacher.setName(name);
        teacher.setAge(age);
        teacher.setBirthday(birthday);
        return teacher;
    }
}
